package cn.com.cetccst.activation.network.response;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class FeaturesResponse {

    //TODO 这个errcode和别的还不一样
    /**
     * {
     *     "errCode": 0,
     *     "errMsg": "Success.",
     *     "features": [
     *         {
     *             "feature": "MDM",
     *             "status": "Enable"
     *         },
     *         {
     *             "feature": "MAM",
     *             "status": "Enable"
     *         },
     *         {
     *             "feature": "VPN",
     *             "status": "Enable"
     *         },
     *         {
     *             "feature": "CA",
     *             "status": "Disable"
     *         }
     *     ]
     * }
     */
    @SerializedName("errCode")
    private int errCode;
    @SerializedName("errMsg")
    private String errMessage;
    @SerializedName("features")
    private List<Feature> features;

    public int getErrCode() {
        return errCode;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public List<Feature> getFeatures() {
        return features;
    }

    public static class Feature {
        public static final String FEATURE_MDM = "MDM";
        public static final String FEATURE_MAM = "MAM";
        public static final String FEATURE_VPN = "VPN";
        public static final String FEATURE_CA = "CA";
        public static final String ENABLE = "Enable";
        public static final String DISABLE = "Disable";
        @SerializedName("feature")
        private String feature;
        @SerializedName("status")
        private String status;

        public String getFeature() {
            return feature;
        }

        public String getStatus() {
            return status;
        }
    }
}
